<template>
	<view>
		<view v-for="(value,key) in proclassData" :key="key" @click="gotoInfo(value.position.pcId)">
			<contextItem :position="proclassData[key].position" :quota="proclassData[key].quota"></contextItem>
		</view>
	</view>

</template>

<script>

	import contextItem from './contextItem.vue'
	export default {
		data() {
			return {
				
			}
		},
		props:{
			proclassData:Array
		},
		created() {
			this.loadData();
		},
		components: {
			contextItem
		},
		methods: {
			gotoInfo(key) {
				// console.log(123);
				uni.navigateTo({
					url: "projectclassinfo/projectclassinfo?key="+key,
					success: (res) => {
						console.log(res);
					},
					fail: (res) => {
						console.log(res)
					}
				});
				// console.log(123);
			},
			loadData(){
				
			}
		}
	}
</script>

<style>
</style>
